<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./listScroll.css" />
    <style></style>
  </head>
  <body>
    <div id="box"></div>

    <script src="./JQuery.js"></script>
    <script src="./listScroll.js"></script>
    <script>
      const data = [
        {
          eq: "山西长治3.2级地震",
          zhenji: 5.2,
          shendu: 10,
          time: "2010 - 01 - 02",
        },
        {
          eq: "山西长治4.2级地震",
          zhenji: 5.2,
          shendu: 10,
          time: "2010 - 01 - 02",
        },
        {
          eq: "山西长治5.2级地震",
          zhenji: 5.2,
          shendu: 10,
          time: "2010 - 01 - 02",
        },
        {
          eq: "山西长治6.2级地震",
          zhenji: 5.2,
          shendu: 10,
          time: "2010 - 01 - 02",
        },
        {
          eq: "山西长治6.2级地震",
          zhenji: 5.2,
          shendu: 10,
          time: "2010 - 01 - 02",
        },
        {
          eq: "山西长治6.2级地震",
          zhenji: 5.2,
          shendu: 10,
          time: "2010 - 01 - 02",
        },
        {
          eq: "山西长治6.2级地震",
          zhenji: 5.2,
          shendu: 10,
          time: "2010 - 01 - 02",
        },
        {
          eq: "山西长治6.2级地震",
          zhenji: 5.2,
          shendu: 10,
          time: "2010 - 01 - 02",
        },
        {
          eq: "山西长治6.2级地震",
          zhenji: 5.2,
          shendu: 10,
          time: "2010 - 01 - 02",
        },
        ,
        {
          eq: "山西长治6.2级地震",
          zhenji: 5.2,
          shendu: 10,
          time: "2010 - 01 - 02",
        },
        {
          eq: "山西长治6.2级地震",
          zhenji: 5.2,
          shendu: 10,
          time: "2010 - 01 - 02",
        },
        {
          eq: "山西长治6.2级地震",
          zhenji: 5.2,
          shendu: 10,
          time: "2010 - 01 - 02",
        },
      ];
      let head = [
        {lable:"排序",width:50},
        {lable:"名称",width:180},
        {lable:"震级",width:50},
        {lable:"震源深度",width:80},
        {lable:"发震时刻",width:150},
      ];
      scroll(50, data, head);
    </script>
  </body>
</html>
